<!--#include("./header.html")-->
<!--%import("css/forum.css")-->
<!--%import("filter/insert_functional_info.xml")-->
<!--%import("js/forum_admin.js")-->

{$setup_content}

	<div class="xe-ui-panel">
		<div class="xe-ui-panel-content cleared">
			<form id="_form" action="./" method="post" onsubmit="return procFilter(this, insert_functional_info)" enctype="multipart/form-data">
				<input type="hidden" name="page" value="{$page}" />
				<input type="hidden" name="mid" value="{$module_info->mid}" />
				<input type="hidden" name="act" value="{Context::get('act')}" />
				<input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
				<input type="hidden" name="use_anonymous" value="{$module_info->use_anonymous}" />
				<input type="hidden" name="allow_anonymous_search" value="{$module_info->allow_anonymous_search}" />
				<input type="hidden" name="consultation" value="{$module_info->consultation}" />
				<input type="hidden" name="title" value="{$module_info->title}" />
				<input type="hidden" name="comment" value="{$module_info->comment}" />
				<input type="hidden" name="admin_mail" value="{$module_info->admin_mail}" />
				<input type="hidden" name="header_text" value="{$module_info->header_text}" />
				<input type="hidden" name="footer_text" value="{$module_info->footer_text}" />
				
				<h2 class="triggerFunctionalInfo"><a href="#">{$lang->functional_info}</a></h2>
				<table cellspacing="0" cellpadding="0" class="xe-ui-form-table containerFunctionalInfo">
					<tbody>
						<tr>
						    <td class="v-top nowrap"><p>{$lang->order_target}</p></td>
						    <td>
						    	<p>
							        <select name="order_target" class="xe-ui-panel-select">
							            <!--@foreach($order_target as $key => $val)-->
							            <option value="{$key}" <!--@if($module_info->order_target == $key)-->selected="selected"<!--@end-->>{$val}</option>
							            <!--@end-->
							        </select>
                                </p>
						    </td>
						</tr>
						<tr>
						    <td class="v-top nowrap"><p>{$lang->order_type}</p></td>
						    <td>
						    	<p>
							        <select name="order_type" class="xe-ui-panel-select">
							            <option value="asc" <!--@if($module_info->order_type != 'desc')-->selected="selected"<!--@end-->>{$lang->order_asc}</option>
							            <option value="desc" <!--@if($module_info->order_type == 'desc')-->selected="selected"<!--@end-->>{$lang->order_desc}</option>
							        </select>
						        </p>
						    </td>
						</tr>
						<tr>
						    <td class="v-top nowrap"><p>{$lang->list_count}</p></td>
						    <td>
						    	<p>
							        <input class="xe-ui-panel-text" type="text" name="list_count" value="{$module_info->list_count?$module_info->list_count:20}"  class="inputTypeText" />
							        <label>{$lang->about_list_count}</label>
							    </p>
						    </td>
						</tr>
						<tr>
						    <td class="v-top nowrap"><p>{$lang->search_list_count}</p></td>
						    <td>
						    	<p>
							        <input class="xe-ui-panel-text" type="text" name="search_list_count" value="{$module_info->search_list_count?$module_info->search_list_count:20}"  class="inputTypeText" />
							        <label>{$lang->about_search_list_count}</label>
							    </p>
						    </td>
						</tr>
						<tr>
						    <td class="v-top nowrap"><p>{$lang->page_count}</p></td>
						    <td>
						        <p>
							        <input class="xe-ui-panel-text" type="text" name="page_count" value="{$module_info->page_count?$module_info->page_count:10}"  class="inputTypeText" />
							        <label>{$lang->about_page_count}</label>
							    </p>
						    </td>
						</tr>
						<tr>
						    <td class="v-top nowrap"><p>{$lang->except_notice}</p></td>
						    <td>
						        <p>
							        <input type="checkbox" name="except_notice" value="Y" <!--@if($module_info->except_notice!='N')-->checked="checked"<!--@end--> />
							        <label>{$lang->about_except_notice}</label>
							    </p>
						    </td>
						</tr>
					</tbody>
				</table>
				<script>
					jQuery("h2.triggerFunctionalInfo").click(function () {
						jQuery("table.containerFunctionalInfo").fadeToggle(100);
						jQuery("#_form").next("div.cleared").fadeToggle(100);
					});    
				</script>
				
			</form>
			<div class="cleared">
				<hr />
				<p class="center">
	    			<a href="#" onclick="jQuery('#_form').submit();" class="xe-ui-button-green">{$lang->cmd_registration}</a>
					<a href="#" onclick="history.back(); return false;" class="xe-ui-button-gray"><span>{$lang->cmd_back}</span></a>
				</p>
			</div>
			
			
			<h2>{$lang->cmd_list_setting}</h2>
			<p>{$lang->about_list_config}</p>

			<div class="targetItem">
			    <strong>{$lang->list_target_item}</strong>
			    <select class="xe-ui-panel-select" size="{count($extra_vars)}" name="targetItem" id="targetItem" ondblclick="doInsertItem(); return false;">
			    <!--@foreach($extra_vars as $key => $val)-->
			    <option value="{$key}">{$val->name}</option>
			    <!--@end-->
			    </select>
			</div>

			<div class="displayButton">
			    <a href="#" onclick="doInsertItem(); return false;" class="buttonSet buttonRight"><span>{$lang->cmd_insert}</span></a><br />
			    <a href="#" onclick="doDeleteItem(); return false;" class="buttonSet buttonLeft"><span>{$lang->cmd_delete}</span></a><br />
			    <a href="#" onclick="doMoveUpItem(); return false;" class="buttonSet buttonUp"><span>{$lang->cmd_move_up}</span></a><br />
			    <a href="#" onclick="doMoveDownItem(); return false;" class="buttonSet buttonDown"><span>{$lang->cmd_move_down}</span></a>
			</div>

			<div class="displayItem">
			    <strong>{$lang->list_display_item}</strong>
			    <select class="xe-ui-panel-select" size="{count($extra_vars)}" name="displayItem" id="displayItem" ondblclick="doDeleteItem();">
			    <!--@foreach($list_config as $key => $val)-->
			    <option value="{$key}">{$val->name}</option>
			    <!--@end-->
			    </select>

			    <p class="cleared center">
			        <a href="#" onclick="doSaveListConfig('{$module_srl}'); return false;" class="xe-ui-button-gray">{$lang->cmd_save}</a>
			    </p>
			</div>
		</div>
     </div>
</div>